<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        div {
            height: 600px;
            width: 900px;
            background-image: url('image/timg.jpg');
            background-repeat: no-repeat;
            background-attachment:fixed;
            background-position:center;
            /* 不重复 */
            background-position: 0 0;
            /* background-position: center right; 不分xy*/
            /* background-position: 20px center; 分xy*/
            /* background-attachment: fixed; */
            /* background: rgba(0,0,0,0.2); 背景色半透明 */
        }

    </style>
</head>
<body>
<div>

</div>
</body>
<html>
